<%@ Page Language="C#" MasterPageFile="~/Presentacion/MasterPage.master" AutoEventWireup="true" CodeFile="PlanAdmision.aspx.cs" Inherits="PlanAdmision" Title="Elaborar Plan de Admision" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:UpdatePanel runat="server" id="UpdPnl_PlanAdmision">
        <ContentTemplate>
            <br>
            <table width="90%">
                <tr>
                    <td colspan="3">
                        <asp:Label id="lblTitulo" runat="server" Font-Size="Large" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <br>
                    </td>
                </tr>
            </table>
            <div class="divBorderOnly">
                <table width="90%">
                    <tr>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                    </tr>
                    <tr>
                        <td colspan="1">
                            <asp:Label id="lblCodProceso" runat="server" cssclass="label" Text="Proceso"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="1">
                            <asp:DropDownList ID="ddlCodProceso" runat="server" CssClass="combo"></asp:DropDownList>
                        </td>
                        <td colspan="1">
                            <asp:Label id="lblDescripcion" runat="server" cssclass="label" Text="Descripci&oacuten"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtDescripcion" runat="server" CssClass="label" 
                                Enabled="False" Width="300px"></asp:TextBox>
                        </td>
                        <td colspan="1" align="center">
                            <asp:Button id="btnConsultar" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnConsultar %>" onclick="btnConsultar_Click" 
                                CausesValidation="False" Width="80px"></asp:Button>
                        </td>
                        <td rowspan="2" align="left" valign="middle">
                            <asp:ImageButton runat="server" ID="ImgLimpiar" CausesValidation="False" ImageUrl="../images/clear.png" CommandName="LimpiarControles" Width="40" Height="40" onclick="ImgLimpiar_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnNuevo" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnNuevo %>" OnClick="btnNuevo_Click" Width="75px"></asp:Button>
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnModificar" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnModificar %>" OnClick="btnModificar_Click" 
                                Width="75px"></asp:Button>
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnGraba" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnGraba %>" OnClick="btnGraba_Click" Width="75px"></asp:Button>
                        </td>
                        <td colspan="2" align="center" >
                            <asp:Button id="btnCerrarProceso" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnCerrarProceso %>" 
                                OnClick="btnCerrarProceso_Click" Width="120px"></asp:Button>
                        </td>
                        <td colspan="1" align="center" >
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnSalir" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnSalir %>" onclick="btnSalir_Click" 
                                CausesValidation="False" Width="80px"></asp:Button>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:Panel id="pnlActividades" runat="server" Visible="false" width="90%" BorderStyle="Solid" BorderWidth="1px"> 
                <table>
                    <tr>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:Label id="lblACtividades" text="Actividades" runat="server" Font-Size="Medium" Font-Bold="true"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView id="gvActividades" runat="server" OnPageIndexChanging="gvActividades_PageIndexChanging" CellPadding="2" AutoGenerateColumns="False" AllowPaging="True">
                                <Columns>
                                    <asp:BoundField DataField="Id_PlanActFec" HeaderText="Codigo">
                                        <HeaderStyle Width="50pt" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Descripcion" HeaderText="Descripcion">
                                        <HeaderStyle Width="225pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Direccion" HeaderText="Direccion">
                                        <ItemStyle HorizontalAlign="Left" />
                                        <HeaderStyle Width="300pt" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="SEL.">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkItemSelect" runat="server" Enabled='<%#Eval("ItemSelect") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle CssClass="gridItem" HorizontalAlign="Center"></RowStyle>
                                <EditRowStyle CssClass="gridItem" HorizontalAlign="Center"></EditRowStyle>
                                <PagerStyle CssClass="gridItem"></PagerStyle>
                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" BackColor="#993399" ForeColor="White" ></HeaderStyle>
                                <AlternatingRowStyle CssClass="gridItem"></AlternatingRowStyle>
                            </asp:GridView> 
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="70%">
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnAgregarActividad" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnAgregar %>" OnClick="btnAgregarActividad_Click" Width="75px"></asp:Button>
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnQuitarActividad" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnQuitar %>" OnClick="btnQuitarActividad_Click" Width="75px"></asp:Button>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel id="pnlDatActividades" runat="server" Visible="false" width="90%" BorderStyle="Solid" BorderWidth="1px"> 
                <table>
                    <tr>
                        <td colspan="5">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label id="lblDatActividad" text="Datos de la Actividad" runat="server" Font-Size="Medium" Font-Bold="true"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1" style="width: 10.0%"></td>
                        <td colspan="1" style="width: 20.0%"></td>
                        <td colspan="1" style="width: 45.0%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                        <td colspan="1" style="width: 12.5%"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="1">
                            <asp:Label id="lblListaActividades" runat="server" cssclass="label" Text="Actividad"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="3">
                            <asp:DropDownList id="ddlActividades" runat="server" CssClass="combo" AutoPostBack="True" onselectedindexchanged="ddlActividades_SelectedIndexChanged" Width="300px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="1">
                            <asp:Label id="lblDirActividad" runat="server" cssclass="label" Text="Direcci&oacuten"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="3">
                            <asp:TextBox id="txtDirActividad" onkeypress="return ingresoMayusculas_Num_Esp();" runat="server" CssClass="label" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" width="70%">
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnGrabarActividad" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnGrabar %>" OnClick="btnGrabarActividad_Click" Width="75px"></asp:Button>
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnCancelarActividad" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnCancelar %>" OnClick="btnCancelarActividad_Click" Width="75px"></asp:Button>
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel id="pnlDocumentos" runat="server" Visible="false" width="90%" BorderStyle="Solid" BorderWidth="1px"> 
                <table>
                    <tr>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:Label id="lblDocumentos" text="Documentos" runat="server" Font-Size="Medium" Font-Bold="true"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView id="gvDocumentos" runat="server" OnPageIndexChanging="gvDocumentos_PageIndexChanging" CellPadding="2" AutoGenerateColumns="False" AllowPaging="True">
                                <Columns>
                                    <asp:BoundField DataField="CodRequisito" HeaderText="Codigo">
                                        <HeaderStyle Width="50pt" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Descripcion" HeaderText="Descripcion">
                                        <HeaderStyle Width="225pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="SEL.">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkReqSelect" runat="server" Checked='<%#Eval("ItemSelect") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle CssClass="gridItem" HorizontalAlign="Center"></RowStyle>
                                <EditRowStyle CssClass="gridItem" HorizontalAlign="Center"></EditRowStyle>
                                <PagerStyle CssClass="gridItem"></PagerStyle>
                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" BackColor="#993399" ForeColor="White" ></HeaderStyle>
                                <AlternatingRowStyle CssClass="gridItem"></AlternatingRowStyle>
                            </asp:GridView> 
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="70%">
                        </td>
                        <td colspan="1" align="center" >
                            <asp:Button id="btnGrabarDocumentos" runat="server" CssClass="btn" 
                                Text="<%$ Resources:Resource,btnGrabar %>" OnClick="btnGrabarDocumentos_Click" Width="75px"></asp:Button>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel id="pnlPostulantes" runat="server" Visible="false" width="90%" BorderStyle="Solid" BorderWidth="1px"> 
                <table>
                    <tr>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:Label id="lblPostulantes" text="Postulantes" runat="server" Font-Size="Medium" Font-Bold="true"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView id="gvPostulantes" runat="server" OnPageIndexChanging="gvPostulantes_PageIndexChanging" CellPadding="2" AutoGenerateColumns="False" AllowPaging="True">
                                <Columns>
                                    <asp:BoundField DataField="Id_PostulantePlan" HeaderText="Codigo">
                                        <HeaderStyle Width="50pt" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Nombres" HeaderText="Nombres">
                                        <HeaderStyle Width="225pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Apellidos" HeaderText="Apellidos">
                                        <HeaderStyle Width="225pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="Cumplio">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkCumplio" runat="server" Checked='<%#Eval("ItemSelect") %>' Enabled = "false" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle CssClass="gridItem" HorizontalAlign="Center"></RowStyle>
                                <EditRowStyle CssClass="gridItem" HorizontalAlign="Center"></EditRowStyle>
                                <PagerStyle CssClass="gridItem"></PagerStyle>
                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" BackColor="#993399" ForeColor="White" ></HeaderStyle>
                                <AlternatingRowStyle CssClass="gridItem"></AlternatingRowStyle>
                            </asp:GridView> 
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel id="pnlOpciones" runat="server">
                <table>
                    <tr>
                        <td align="center" colspan="1" width="100%">
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                <ProgressTemplate>
                                    <img src="../images/load.gif" alt="Cargando..."/>
                                    <asp:Label ID="lblEspera" runat="server" CssClass="label" Text="Un momento por favor..."></asp:Label>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>    
</asp:Content>